import img_url from "./imgUrl"
// 根据公司判断是否需要添加域名
const showImgUrl = (item, company) => {
  if (!item.pic) return;
  // if (item.origin === "easytouch" || item.pic.indexOf("http") == -1) {
  if (item.pic.indexOf("http") === -1) {
    return `${img_url}/PIC/${company}/${item.pic}`;
  } else {
    return item.pic;
  }
};
export default showImgUrl